-
Notifications
You must be signed in to change notification settings - Fork 34
Add integration tests for site csp report #1117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generated by 🚫 Danger |
I am getting 400 on local machine, here it's reporting 204. I will check again |
In the controller, the method is annotated with |
Do we need to change the @ResponseStatus(HttpStatus.NO_CONTENT)? |
No, as this is an expected behaviour -- the controller should report about success but 200 requires a body and 204 is a response that doesn't require a body. I've also updated an original issue where I mistakenly wrote 201 instead of 204. |
ok :)
…On Sun, Sep 8, 2019 at 6:02 PM Slava Semushin ***@***.***> wrote:
Do we need to change the @ResponseStatus(HttpStatus.NO_CONTENT)?
No, as this is an expected behaviour -- the controller should report about
success but 200 requires a body and 204 is a response that doesn't require
a body. I've also updated an original issue where I mistakenly wrote 201
instead of 204.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1117?email_source=notifications&email_token=AAJPE6ANPLZ4UI2GRAFYPSTQITWENA5CNFSM4IUQY4QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FOZ4Q#issuecomment-529198322>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJPE6G3VY6N5WTWPJAZHBLQITWENANCNFSM4IUQY4QA>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 👍
See my comments.
05c7c9d
to
99e8d7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments and also could you, please, modify the first line of commit message to be:
test(/site/csp/reports): add integration test.
P.S. One more thing -- remove original TODO comment. |
99e8d7d
to
f0e5a9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Only one tiny bit is missing.
f0e5a9c
to
fb2cbbd
Compare
Fix #1094